/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package knowledgebase.service;

import java.util.List;
import knowledgebase.model.Role;

/**
 *
 * @author eugene
 */
public interface RoleService {
    public List<Role> getAllRoles();
    public void saveOrUpdateRole(Role role) throws Exception;
    public void removeRole(long roleId);
    public Role getRoleByName(String roleName);
    public List<Role> searchRoles(String name, int startIndex, int size);
    public long getUserCount();
}
